package com.ktjy.actual.mapper.Impl;

import com.ktjy.actual.entity.Paper;
import com.ktjy.actual.mapper.PrintMapper;
import org.springframework.stereotype.Repository;
//相当于<bean id="printColoursMapperImpl" class="com.ktjy.actual.mapper.Impl.PrintColoursMapperImpl"/>
@Repository("printColoursMapperImpl") // 将这个类交给spring管理
public class PrintColoursMapperImpl implements PrintMapper {
    @Override
    public int print(Paper paper) {
        System.out.println("打印彩色的"+paper.getName());
        return 1;
    }
}
